package com.antd.common.log.fegin.factory;

import com.antd.common.log.fegin.RemoteLogService;
import com.antd.common.log.fegin.fallback.RemoteLogFallBackImpl;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * TODO
 *
 * @author 子丶沫
 * @version 1.0
 * @date 2020/11/18 17:59
 */
@Component
public class RemoteLogFallBackFactory implements FallbackFactory<RemoteLogService> {
    @Override
    public RemoteLogService create(Throwable throwable) {
        return new RemoteLogFallBackImpl(throwable);
    }
}
